package(default_visibility = ["//visibility:public"])

load(
    "@io_bazel_rules_go//go:def.bzl",
    "go_test",
    "go_library",
)

go_test(
    name = "go_default_test",
    srcs = [
        "abserver_test.go",
        "account_redis_test.go",
        "archive_test.go",
        "article_redis_test.go",
        "bfs_test.go",
        "bigdata_test.go",
        "bnj_test.go",
        "dao_test.go",
        "dynamic_redis_test.go",
        "elec_test.go",
        "feedback_test.go",
        "help_test.go",
        "icon_redis_test.go",
        "newlist_redis_test.go",
        "online_redis_test.go",
        "online_test.go",
        "pay_test.go",
        "ranking_redis_test.go",
        "reply_test.go",
        "search_test.go",
        "shop_test.go",
        "space_test.go",
        "tag_test.go",
        "view_redis_test.go",
        "wechat_test.go",
    ],
    embed = [":go_default_library"],
    rundir = ".",
    tags = ["automanaged"],
    deps = [
        "//app/interface/main/web/conf:go_default_library",
        "//app/interface/main/web/model:go_default_library",
        "//app/interface/openplatform/article/model:go_default_library",
        "//app/service/main/archive/api:go_default_library",
        "//app/service/main/dynamic/model:go_default_library",
        "//app/service/main/resource/model:go_default_library",
        "//library/ecode:go_default_library",
        "//library/time:go_default_library",
        "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
        "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
    ],
)

go_library(
    name = "go_default_library",
    srcs = [
        "abserver.go",
        "account_redis.go",
        "archive.go",
        "article_redis.go",
        "bfs.go",
        "bigdata.go",
        "bnj.go",
        "dao.go",
        "dynamic_redis.go",
        "elec.go",
        "feedback.go",
        "help.go",
        "icon_redis.go",
        "newlist_redis.go",
        "online.go",
        "online_redis.go",
        "pay.go",
        "ranking_redis.go",
        "reply.go",
        "search.go",
        "shop.go",
        "space.go",
        "tag.go",
        "view_redis.go",
        "wechat.go",
    ],
    importpath = "go-common/app/interface/main/web/dao",
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
    deps = [
        "//app/interface/main/web/conf:go_default_library",
        "//app/interface/main/web/model:go_default_library",
        "//app/interface/openplatform/article/model:go_default_library",
        "//app/service/main/archive/api:go_default_library",
        "//app/service/main/dynamic/model:go_default_library",
        "//app/service/main/resource/model:go_default_library",
        "//library/cache/redis:go_default_library",
        "//library/ecode:go_default_library",
        "//library/log:go_default_library",
        "//library/net/http/blademaster:go_default_library",
        "//library/net/metadata:go_default_library",
        "//library/net/trace:go_default_library",
        "//library/stat/prom:go_default_library",
        "//library/time:go_default_library",
        "//library/xstr:go_default_library",
        "//vendor/github.com/pkg/errors:go_default_library",
    ],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [":package-srcs"],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)
